package com.ruoyi.system.service.zhaungxiuservice.shopService.impl;

import com.ruoyi.system.domain.zhuangxiumain.shopMain.ProductDetailsImage;
import com.ruoyi.system.mapper.zhuangxiumapper.shopMapper.ProductDetailsImgMapper;
import com.ruoyi.system.service.zhaungxiuservice.shopService.ProductDetailsImgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductDetailsImgServiceImpl implements ProductDetailsImgService {
    @Autowired(required = false)
    private ProductDetailsImgMapper productDetailsImgMapper;


    @Override
    public int addProductInfoPic(ProductDetailsImage productDetailsImage) {
        return productDetailsImgMapper.addProductInfoPic(productDetailsImage);
    }

    @Override
    public List<ProductDetailsImage> getProductInfoPicById(Long id) {
        return productDetailsImgMapper.getProductInfoPicById(id);
    }

    @Override
    public int deleteProdoctInfoPic(String picName) {
        return productDetailsImgMapper.deleteProdoctInfoPic(picName);
    }
}
